package com.mqtt.ctwingmqtt.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "设备视图对象")
public class DeviceVO {

    @ApiModelProperty(value = "主键ID", example = "1")
    private Long id;

    @ApiModelProperty(value = "设备编号", example = "D12345")
    private String deviceCode;

    @ApiModelProperty(value = "设备ID", example = "DEV12345")
    private String deviceAddress;

    @ApiModelProperty(value = "设备状态（在线/离线）", example = "在线")
    private String status;

    @ApiModelProperty(value = "设备名称", example = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "关联DTU表的ID（逻辑外键）", example = "1")
    private Long dtuId;

    @ApiModelProperty(value = "关联DTU表的名称（逻辑外键）", example = "DTU名称")
    private String dtuName;

    @ApiModelProperty(value = "设备类型", example = "阀门")
    private String deviceType;

    @ApiModelProperty(value = "创建时间", example = "2023-10-01 12:34:56")
    private Timestamp createTime;

    @ApiModelProperty(value = "更新时间", example = "2023-10-01 12:34:56")
    private Timestamp updateTime;

    @ApiModelProperty(value = "产品id", example = "1")
    private String projectId;

}
